package com.kinglone.common.poi;

import org.apache.poi.POIXMLDocument;
import org.apache.poi.xwpf.usermodel.XWPFDocument;

import java.io.IOException;

/**
 * @Author: mty
 * @Description:利用POI进行Word文件相关的操作，针对xlsx形式的封装
 * @Date: Created in 15:34 2018-11-02
 * @Modified By:
 */
public class ExcelMark {

    public void setTemplate(String templatePath) {
        try {
            XWPFDocument document= new XWPFDocument(
                    POIXMLDocument.openPackage(templatePath));
            System.out.println(document.toString());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
